<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>查看所有用户</title>
    <script type="text/javascript" src="${contextPath }/jsp/js/backUser.js">

    </script>
  </head>
  
  <body><h3>对用户进行删除，修改权限操作。</h3>

<table> 
   <tr>
     <td>
         <ul>
           <c:forEach var="user" items="${users}">
                 <li id="${user.userName}">
                 <table>
                  <tr>
                  <th width="100" valign="baseline"><font size="5">${user.userName}</font></th>
                  <th width="100"><a href="${contextPath }/showUser.do?operation=getUser&userName=${user.userName}">查看详情</a> </th>
                  <th width="100"><input type="button" value="删除" onclick="del('${user.userName}');"/></th>
                  </tr>
                 </table>
             
                 </li>
           </c:forEach>
         </ul> 
    </td>
   </tr>
   <tr>		
												         <td align="right" >
												           <c:choose>
												    <c:when test="${flag eq 1}">
        <table id="cuts" align="right" >
          <tr>
         	<td><a href="${contextPath }/showUser.do?operation=showAllUsers&page=1"
    		   id="firstPage" name="firstPage"">首页&nbsp;&nbsp;</a></td>
    	    <td><a href="${contextPath }/showUser.do?operation=showAllUsers&page=${currentPage-1 }"
    	       id="frontPage">上一页&nbsp;&nbsp;</a></td>
    	    <td><a href="${contextPath }/showUser.do?operation=showAllUsers&page=${currentPage+1 }"
    		   id="nextPage" >下一页&nbsp;&nbsp;</a><td>
    	    <td><a href="${contextPath }/showUser.do?operation=showAllUsers&page=${lastPage}"
    		   id="endPage" >末页&nbsp;&nbsp;</a><td>
    		   <td>${ currentPage}/${lastPage }</td>
    	 </tr>
    	</table></c:when>  </c:choose>
    		    </td>
    		    </tr>
</table>

    <br>
  </body>
</html>
